
export const routes = [
    {
        path: '/login',
        component: () => import('@/views/login')
    },
   /* {
        path: '/reg',
        component: () => import('@/views/register')
    },*/
    {
        path: '/agreement',
        component: () => import('@/views/uc/agreement')
    },
    {
        path: '/mall',
        component: () => import('@/views/mall/index')
    },
    {
        path: '/myOrder',
        meta:{
          requireLogin:true,
        },
        component: () => import('@/views/order/mine')
    },
    {
        path: '/exchange/:id',
        meta:{
            requireLogin:true,
        },
        component: () => import('@/views/order/exchange')
    },
    {
        path: '/uc',
        meta:{
            requireLogin:true,
        },
        component: () => import('@/views/uc/main')
    },
    {
        path: '/orderRecord',
        meta:{
            requireLogin:true,
        },
        component: () => import('@/views/order/record')
    },
    {
        path: '/detail/:detailId',
        meta:{
            requireLogin:true,
        },
        component: () => import('@/views/detail/index')
    },
    //404
    {
        path:'*',
        redirect: '/mall'
    }
];
